# -*- coding: utf-8 -*-
#  @author  Bink
#  @date  2020/8/29 15:47
# @Email : 2641032316@qq.com


for i in range(1, 10):
    for j in range(1, i + 1):
        print('%d * %d = %d' % (i, j, i * j), end='\t')
    else:
        print()


for i in range(1, 10):
    for j in range(1, 10):
        if i <= 9:
            print(f"{j}×{i} = {i * j}", end="\t")
    print("")


for i in range(1, 10):
    for k in range(1, 10 - i):
        print(end="        ")
    for j in range(1, i + 1):
        print(f"{j}×{i} = {i * j}", end="        ")
    print(" ")


print('*'*160)


for i in range(1, 10):
    for k in range(1, i):
        print(end="        ")  # 此处8个空格
    for j in range(i, 10):
        print(f"{j}×{i} = {i * j}", end="        ")
    print(" ")
print("\n")
